home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / ColorSync / Sample Code / CSDemo 2.1 / CSDemoSources / winPictDoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-27  |  2.8 KB  |  121 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _WINPICTDOC_
  3. #define _WINPICTDOC_
  4.  
  5.  
  6. #ifndef __TYPES__
  7. #include <Types.h>
  8. #endif
  9.  
  10. #ifndef __QUICKDRAW__
  11. #include <QuickDraw.h>
  12. #endif
  13.  
  14. #ifndef __PALETTES__
  15. #include <Palettes.h>
  16. #endif
  17.  
  18. #ifndef __LISTS__
  19. #include <Lists.h>
  20. #endif
  21.  
  22. #ifndef __CMAPPLICATION__
  23. #include <CMApplication.h>
  24. #endif
  25.  
  26. #ifndef _WIN_
  27. #include "win.h"
  28. #endif
  29.  
  30. #ifndef _DRAGUTILS_
  31. #include "dragUtils.h"
  32. #endif
  33.  
  34.  
  35. /**\
  36. |**| ==============================================================================
  37. |**| PUBLIC DEFINES
  38. |**| ==============================================================================
  39. \**/
  40. #define kPictDocType            'Pict'            // about window tag
  41. #define rPictDocHorzScrollID    3000            // 'CNTL' resource id
  42. #define rPictDocVertScrollID    3001            // 'CNTL' resource id
  43. #define rPictDocMatchOnOffID    3002            // 'CNTL' resource id
  44. #define rPictDocMatchPopupID    3003            // 'CNTL' resource id
  45.  
  46. #define kOriginal    1
  47. #define kMatched    2
  48. #define kProofed    3
  49. #define kChecked    4
  50. #define kDrwMchdPct    5
  51.  
  52. #define kSrceProf    1
  53. #define kDestProf    2
  54. #define kPrevProf    3
  55. #define kEmbedProfs    4
  56.  
  57.  
  58. /**\
  59. |**| ==============================================================================
  60. |**| PUBLIC TYPEDEFS
  61. |**| ==============================================================================
  62. \**/
  63. typedef struct PictDocData
  64. {
  65.     PicHandle            Pict ;
  66.  
  67.     PicHandle            PictMatched ;
  68.     PicHandle            PictProofed ;
  69.     PicHandle            PictChecked ;
  70.  
  71.     long                MatchTime ;
  72.     long                ProofTime ;
  73.     long                CheckTime ;
  74.  
  75.     Boolean                PictMatchedNeedsUpdate ;
  76.     Boolean                PictProofedNeedsUpdate ;
  77.     Boolean                PictCheckedNeedsUpdate ;
  78.  
  79.     Rect                PictRect ;
  80.     Rect                PaneRect ;
  81.  
  82.     PaletteHandle        Palette ;
  83.  
  84.     ControlHandle        HorzScroll ;
  85.     ControlHandle        VertScroll ;
  86.     ControlHandle        MatchOnOff ;
  87.     ControlHandle        MatchPopup ;
  88.  
  89.     CMProfileRef        SrceProf ;
  90.     CMProfileRef        DestProf ;
  91.     CMProfileRef        PrevProf ;
  92.  
  93.     ListHandle            ProfList ;
  94.     unsigned long        ListCount ;
  95.  
  96.     DragZonesHdl        DragZones ;
  97.  
  98. } PictDocDataRec, *PictDocDataPtr, **PictDocDataHdl ;
  99.  
  100.  
  101. /**\
  102. |**| ==============================================================================
  103. |**| PUBLIC FUNCTION PROTOTYPES
  104. |**| ==============================================================================
  105. \**/
  106. void        winActivatePictDoc        ( winHandle win, Boolean activating ) ;
  107. void        winUpdatePictDoc        ( winHandle win, EventRecord *e ) ;
  108. void        winClickPictDoc            ( winHandle win, EventRecord *e ) ;
  109. void        winResizePictDoc        ( winHandle win ) ;
  110. void        winMenuPictDoc            ( winHandle win, long menuResult, Boolean *didit ) ;
  111. void        winUpdateMenusPictDoc    ( winHandle win ) ;
  112. OSErr        winAllocPictDoc            ( winHandle win ) ;
  113. OSErr        winNewPictDoc            ( winHandle win ) ;
  114. OSErr        winOpenPictDoc            ( winHandle win ) ;
  115. void        winClosePictDoc            ( winHandle win ) ;
  116. void        winDisposePictDoc        ( winHandle win ) ;
  117. OSErr        winPageCountPictDoc        ( winHandle win, short *pageCount ) ;
  118. OSErr        winPagePrintPictDoc        ( winHandle win, GrafPtr imagingPort, short pageNum ) ;
  119.  
  120.  
  121. #endif